<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateFhPageTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('fh_page', function (Blueprint $table) {
            $table->increments('id');
            $table->string('name')->default('')->comment('页面名称');
            $table->string('url')->default('')->comment('页面地址');
            $table->tinyInteger('url_type')->default('1')->comment('1站内导航 2其他网站');
            $table->tinyInteger('p_type')->default('1')->nullable()->comment('位置 1.主导航 2.次级导航');
            $table->string('p_id')->default('0')->comment('父级');
            $table->integer('sort')->default('1')->comment('排序');
            $table->tinyInteger('show')->default('1')->nullable()->comment('0隐藏，1显示');
            $table->string('keyword')->nullable()->comment('SEO关键词');
            $table->string('description')->nullable()->comment('SEO简介');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('fh_page');
    }
}
